#version 450

flat in Varyings
{
    vec2 uv;
    vec4 color;
} inputs;

layout(binding = 0) uniform sampler2D mainTex;

out vec4 fragColor;

void main()
{
    vec4 texColor = texture(mainTex, inputs.uv);
    fragColor = texColor * inputs.color;
}
